﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IBS.Bll.Tools;
using IBS.Model;
using IBS.ServiceContracts;

namespace IBS.Bll.Accounts
{
    public class AccountValidator
    {
        private IIbsContext context;
        private readonly IAccountService _accountService;

        public AccountValidator(IIbsContext context, IAccountService accountService)
        {
            this.context = context;
            _accountService = accountService;
        }

        public bool IsPositiveAmount(decimal startAmount)
        {
            return startAmount > 0;
        }

        public bool IsCorrectStartAmount(decimal startAmount)
        {
            return startAmount >= 0;
        } 

        public bool AccountIsBlocked(Account account)
        {
            return account.IsBlocked;
        }

        public bool HasMaxAmount(decimal amount)
        {
            return amount >= Configuration.MaxAccountAmount;
        }
        
    }
}
